package model;

/**
 * class AddFolderRequest - for adding a folder
 */
public class AddFolderRequest extends Request{
	String userID;
	String folderName;
	
	/**
	 * constructor
	 * @param userID - the user name
	 * @param folderName - the folder name
	 */
	public AddFolderRequest(String userID,String folderName)
	{
		super();
		this.userID = userID;
		this.folderName = folderName;
	}

	@Override
	/**
	 * add the user's folder 
	 */
	public Integer call() throws Exception {
		// TODO Auto-generated method stub
		//System.out.println("add folder req");
		return DbAdapter.getInstance().addNewDbFolder(userID,folderName);
	}

}
